package p.ithorns.integration.sharding;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * TableNamesConfig
 * TODO
 *
 * @author ithorns
 * @version 1.0
 * @date 2021/9/6 23:45
 */
@Component
@ConfigurationProperties(prefix = "db.table")
@Data
public class TableNamesConfig {

    /**
     * 表名称
     */
    String[] names;

    /**
     * 起始年 默认 2021
     */
    int startYear;

}

